Periodic sensor panel baseline adjustment

ABSTRACT

A periodic baseline adjustment algorithm is disclosed that can increment or decrement individual baseline sensor output values by one count to provide periodic fine-tuning of the baseline to track temperature drift. A scan of the sensor panel is performed after a dynamic adjustment time interval has passed. Previously computed offset values are subtracted from the sensor output values to normalize them. For any normalized sensor values that are positive, the offset values are incremented by one count. For any normalized sensor values that are negative, the offset values are decremented by one count. The algorithm waits the duration of a dynamic adjustment period before scanning the panel again. Dynamic adjustment intervals allow quick recovery for slight baseline inversions without adapting out far-field or touch objects very quickly. Adjustment intervals can depend on an average of background (non-patch) sensor output values.

FIELD OF THE INVENTION

This relates to panels used as input devices for computing systems, and more particularly, to the periodic updating of baseline no-touch sensor output values to account for temperature drift.

BACKGROUND OF THE INVENTION

Many types of input devices are presently available for performing operations in a computing system, such as buttons or keys, mice, trackballs, touch panels, joysticks, touch screens and the like. Touch screens, in particular, are becoming increasingly popular because of their ease and versatility of operation as well as their declining price. Touch screens can include a touch panel, which can be a clear panel with a touch-sensitive surface. The touch panel can be positioned in front of a display screen so that the touch-sensitive surface covers the viewable area of the display screen. Touch screens can allow a user to make selections and move a cursor by simply touching the display screen via a finger or stylus. In general, the touch screen can recognize the touch and position of the touch on the display screen, and the computing system can interpret the touch and thereafter perform an action based on the touch event.

Touch panels can include an array of touch sensors capable of detecting touch events (the touching of fingers or other objects upon a touch-sensitive surface). Future panels may be able to detect multiple touches (the touching of fingers or other objects upon a touch-sensitive surface at distinct locations at about the same time) and near touches (fingers or other objects within the near-field detection capabilities of their touch sensors), and identify and track their locations. Examples of multi-touch panels are described in Applicant's co-pending U.S. application Ser. No. 10/842,862 entitled “Multipoint Touchscreen,” filed on May 6, 2004 and published as U.S. Published Application No. 2006/0097991 on May 11, 2006, the contents of which are incorporated by reference herein.

Proximity sensor panels are another type of input device that can include an array of proximity sensors capable of detecting hover events (the no-touch, close proximity hovering of fingers or other objects above a surface but outside the near-field detection capabilities of touch sensors) as well as touch events. Proximity sensor panels may also be able to detect multiple instances of hovering referred to herein as multi-hover events (the hovering of fingers or other objects above a surface at distinct locations at about the same time). Examples of a proximity sensor, a proximity sensor panel, a multi-hover panel and a computing system using both an multi-touch panel and proximity sensors are described in Applicant's co-pending U.S. Application No. ______ entitled “Proximity and Multi-Touch Sensor Detection and Demodulation,” filed on ______, the contents of which are incorporated by reference herein.

Proximity sensor panels can be employed either alone or in combination with multi-touch panels. In addition, it is noted that some touch sensors, particularly capacitive touch sensors, can detect some hovering or proximity. Proximity sensors, as referred to herein, are understood to be distinct from touch sensors, including touch sensors that have some ability to detect proximity. Multi-touch sensor panels capable of detecting multi-touch events and multi-hover sensor panels capable of detecting multi-hover events may collectively be referred to herein as multi-event sensor panels.

Both touch sensor panels and proximity sensor panels can be formed as an array of rows and columns of sensors. To scan a sensor panel, a stimulus can be applied to one row with all other rows held at DC voltage levels, although it is possible to drive a group of rows simultaneously and derive the results for each row. When a row is stimulated, a modulated output signal can appear on the columns of the sensor panel. The columns can be connected to analog channels (also referred to herein as event detection and demodulation circuits) that may be implemented using analog and/or digital circuits. For every row that is stimulated, each analog channel connected to a column generates an output value representative of an amount of change in the modulated output signal due to a touch or hover event occurring at the sensor located at the intersection of the stimulated row and the connected column. After analog channel output values are obtained for every column in the sensor panel, a new row is stimulated (with all other rows once again held at DC voltage levels), and additional analog channel output values are obtained. When all rows have been stimulated and analog channel output values have been obtained, the sensor panel is said to have been “scanned,” and a complete “image” of touch or hover can be obtained over the entire sensor panel. This image of touch or hover can include an analog channel output value for every pixel (row and column) in the panel, each output value representative of the amount of touch or hover that was detected at that particular location.

Thus, for example, if a finger touched down directly in the center of a touch panel, the resultant image of touch would include analog channel output values for the pixels located near the center of the panel indicative of touch events occurring at those pixels. The pixels with these output values might be generally grouped together in a oval or ellipsoidal, fingerprint-shaped cluster. Furthermore, the pixels in the center of that oval can have output values indicative of a greater of degree of touch than those pixels at the outside edges of the oval. A similar image of hover can be captured for a finger hovering over the center of the panel.

As mentioned above, a display screen can be located beneath the sensor panel or integrated with the sensor panel. A user interface (UI) algorithm can generate a virtual keypad or other virtual input interface beneath the sensor panel that can include virtual buttons, pull-down menus and the like. By detecting touch or hover events at locations defined by the virtual buttons, the UI algorithm can determine that a virtual button has been “pushed.” The magnitude of the analog channel output values, indicating the “degree” of touch or hover, can be used by the UI algorithm to determine whether there was a sufficient amount of touch or hover to trigger the pushing of the virtual button.

Ideally, a particular amount of touch or hover should generate an analog channel output value of the same magnitude, and thus trigger a corresponding virtual button at the same level or amount of touch or hover, regardless of where the touch or hover event occurred on a sensor panel. However, the electrical characteristics of the sensors in a sensor panel are likely to vary due to processing variations, manufacturing tolerances and assembly differences (which can be due to the location of the sensors in relation to the edges and shape of the sensor panel). For example, variations in the etching pattern for the ITO, variations in the dielectric constant of the glass substrate, the presence of microbubbles in the laminated stackup of materials that form the sensor panel, routing differences in traces on the panel and flex circuits connecting to the panel, or differences in the dielectric constant of the cover plastic, can affect the magnitude of the analog channel output values from location to location within the sensor panel. This can lead to false triggering of virtual buttons or non-triggering of virtual buttons, and a difficult user experience as the user discovers that certain areas of the sensor panel require more or less touching, or closer or farther hovering in order to trigger a virtual button.

To provide a more uniform response from the sensor panel given the same amount of touch or hover, the sensor panel can be calibrated or normalized during boot-up of the computing device that uses the sensor panel. This calibration process can involve scanning the entire sensor panel to determine raw baseline (no-touch or no-hover) output values for each sensor in the panel, and then subtracting out differences in the output values so that all sensor output values are normalized to approximately the same value. With a normalized baseline, subsequent touch or hover events can be more easily detected as increases in output values as compared to the normalized no-touch or no-hover output values, and the same amount of touch or hover at any location in the sensor panel is more likely to consistently trigger a corresponding virtual button.

However, this normalization process presumes that there are no fingers or other objects touching or hovering above the surface of the sensor panel when the raw baseline output values are first obtained. If a user, for example, powers up an electronic device while the user's finger was touching or hovering above the sensor panel, the raw baseline output values for the sensors at which a touch or hover event is detected will be higher than if no finger was present. The higher raw baseline output values for those sensors will be incorrectly interpreted as no-touch or no-hover output values, and the normalization process will generate erroneous normalized baseline values for those sensors.

In addition, even with a normalized baseline, and regardless of whether fingers are present during boot-up, temperature drift can cause the sensor output values to change, which will tend to skew the normalized baseline.

SUMMARY OF THE INVENTION

Pre-stored no-touch or no-hover (no-event) sensor output values can initially be used when a sensor panel subsystem is first booted up to establish an initial baseline of sensor output values unaffected by fingers or other objects touching or hovering over the sensor panel during boot-up. This initial baseline can then be normalized so that each sensor generates the same output value for a given amount of touch or hover, providing a uniform response across the sensor panel and enabling subsequent touch or hover events to be more easily detected. After the initial normalization process is complete, the pre-stored baseline can be discarded in favor of a newly captured no-event baseline that may be more accurate than the pre-stored baseline due to temperature or other variations.

To implement this baseline normalization procedure, the raw no-event baseline values for the sensor panel can be captured prior to final assembly, such as at the factory, for example, and stored in non-volatile memory such as an EEPROM. During boot-up, rather than scanning the sensor panel for the raw baseline, the pre-stored raw baseline, unaffected by any finger or object that may be present, can be used. Offsets can then be computed so that they can be applied to subsequently received output values (after boot-up is complete) to generate normalized output values. A scan of the sensor panel to obtain raw sensor output values can then be performed. A finger or other object can then be detected because the raw sensor output values will be higher than the pre-stored raw baseline. Alternatively, it can be determined that there is no finger of other object present due to the appearance of relatively flat raw output values (within a predetermined range of each other), or if the output values are below some predetermined threshold or within some predetermined range of the pre-stored raw baseline. If a finger or other object is in fact detected, no new baseline will be captured until the finger or other object has been removed, and the values appear flat and/or fall below the threshold or within the predetermined range of the pre-stored raw baseline. In some embodiments of the invention, the detection of a finger or other object can be used to initiate diagnostics modes that run internal tests on the device, or put the device into a certain operational mode. When it has been determined that no finger or other object is present, a new scan of the sensor panel can be performed, a new baseline can be obtained and the pre-stored raw baseline can be discarded.

In some embodiments of the invention when a pre-stored raw baseline is not employed as described above, a global baseline inversion detection algorithm may be performed instead. This algorithm is based on the empirical observation that if a large object such as a palm is placed on a sensor panel, the sensor output values underneath the large object will increase as expected, but just outside the object, where there is no touching or hovering, the sensor output values will unexpectedly decrease. If a conventional “minimum increment baseline adaptation” process is used to dynamically maintain a revised baseline using the lowest sensor output values obtained, the raw baseline values for the outside sensors will be artificially lowered, and an inaccurate revised baseline will be generated.

The global baseline inversion detection algorithm, which is executed during boot-up, can eliminate the capture of an inaccurate baseline as described above. A scan of the entire sensor panel is first performed and a baseline is captured. Next, the number of sensor output values in the entire image with values above the current normalized baseline value are summed (above_baseline_sum), and the number of sensor output values below the normalized baseline are summed (below_baseline_sum). A determination is made whether the magnitude of below_baseline_sum is much greater than (>>) the magnitude of above_baseline_sum (greater than a predetermined margin) for several frames. If this condition is not satisfied, the sensor panel is re-scanned and the sums above_baseline_sum and below_baseline_sum are re-computed. The baseline is recaptured only when the magnitude of below_baseline_sum is >> magnitude of above_baseline_sum, and this condition persists for several consecutive frames.

When a palm or other large object is present, the captured sensor output values will be high for the sensors underneath the large object and low for the outside sensors, and an erroneous baseline will be captured. As long as the palm or other large object is present, because the erroneous baseline is being used, the values for above_baseline_sum and below_baseline_sum will both be small, the magnitude of below_baseline_sum will not be much greater than the magnitude of above_baseline_sum, and no new baseline will be captured. As a result, the baseline values for the sensors outside the large object will not be pushed down to an artificially low level. When the palm or other large object is removed, all output values will return to the correct baseline. In other words, the output values for the sensors that were underneath the large object will drop, and the output values for the sensors outside the large object should rise. However, because that the captured erroneous baseline is still being used, the magnitude of below_baseline_sum will be much greater than the magnitude of above_baseline_sum. If this condition persists for a few scans, the algorithm concludes that the palm or other large object has definitively been removed, and a new baseline can be captured.

In some embodiments of this invention, a periodic baseline adjustment algorithm may be performed. The periodic baseline adjustment algorithm can increment or decrement individual baseline sensor output values by one count or unit, or some small value. This periodic baseline adjustment algorithm can be implemented independent of any other baseline algorithm described above. One purpose of this adjustment mode is to provide periodic fine-tuning of the baseline to track temperature drift.

To perform periodic baseline adjustment, a scan of the sensor panel is performed after a dynamic adjustment time interval has passed. This time interval is generally much longer than the frame rate (the time it takes to scan the entire sensor panel one time). Previously computed offset values are subtracted from the sensor output values to normalize them, and all normalized sensor output values that are positive and negative are identified. For any normalized sensor values that are positive, the offset values are incremented by P, where P may be one count, or a small value, or a percentage of the positive value. For any normalized sensor values that are negative, the offset values are decremented by Q, where Q may be one count, or a small value, or a percentage of the negative value. The algorithm waits the duration of an adjustment period before scanning the panel again.

The adjustment interval can vary. Dynamic adjustment intervals allow quick recovery for slight baseline inversions (e.g. heating on columns w/negative temperature coefficient) without adapting out far-field or touch objects very quickly. Adjustment intervals can depend on an average of background (non-patch) sensor output values (similar to far-field measurement but linear).

If the background average is negative, this can be an indication that the sensor panel is warming up quickly, and thus the adjustment interval can be set to a short interval. If the background average took more than one second to drift positive, this can be an indication of a fast sensor panel cool-down, and thus the adjustment interval can be set to a relatively short interval, such as one second. If the background average took less than one second to drift positive, this can be an indication of a large object. If the background average is neutral or suddenly positive, then if a small hover was previously detected, indicating a possible upcoming touch event, the adjustment interval can be set relatively short. If a finger touch was previously detected, indicating the likelihood of multiple touch events in the near future, the adjustment interval can be sent relatively long. If neither event was dictated, the adjustment interval can be set to a short interval. In some embodiments, to be considered negative, the background average can be about one standard deviation of background noise below neutral. To be considered positive it can be greater than about 2 standard deviations of background noise above neutral.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an illustration of an exemplary computing system operable with either a multi-touch panel, a multi-hover panel, or a combination of both according to one embodiment of this invention.

FIG. 2 a illustrates an exemplary capacitive multi-touch panel according to one embodiment of this invention.

FIG. 2 b is a side view of an exemplary pixel in a steady-state (no-touch) condition according to one embodiment of this invention.

FIG. 2 c is a side view of an exemplary pixel in a dynamic (touch) condition according to one embodiment of this invention.

FIG. 3 illustrates an exemplary proximity sensor panel that can include an array of LED/photodiode pairs, each pair representing a portion of a proximity sensor, according to one embodiment of this invention.

FIG. 4 is an illustration of an exemplary proximity sensor according to one embodiment of this invention.

FIG. 5 illustrates exemplary analog channel (event detection and demodulation circuit) according to one embodiment of this invention.

FIG. 6 a is a graph of an exemplary sensor panel cross-section for one row of sensors versus sensor output value, showing the raw baseline obtained and the effect of a subsequent event according to one embodiment of this invention.

FIG. 6 b is a graph of an exemplary sensor panel cross-section for one row of sensors versus sensor output value, showing the normalized baseline obtained and the effect of a subsequent event according to one embodiment of this invention.

FIG. 6 c is a graph of an exemplary sensor panel cross-section for one row of sensors versus sensor output value, showing the raw baseline obtained in error when an object is present at the sensor panel.

FIG. 6 d is a graph of an exemplary sensor panel cross-section for one row of sensors versus sensor output value, showing an erroneous normalized baseline obtained and the effect of a subsequent event.

FIG. 7 is a flowchart illustrating baseline normalization according to one embodiment of this invention.

FIG. 8 a illustrates the phenomenon of lowered output values for sensors located just outside a large object.

FIG. 8 b illustrates a global baseline inversion detection algorithm according to one embodiment of this invention.

FIG. 8 c illustrates a modified global baseline inversion detection algorithm according to one embodiment of this invention.

FIG. 8 d illustrates an exemplary periodic baseline adjustment algorithm according to one embodiment of this invention.

FIG. 9 a illustrates an exemplary mobile telephone that can include a multi-touch panel and/or a multi-hover panel, and a panel processor configured for implementing baseline normalization or global baseline inversion detection according to one embodiment of this invention.

FIG. 9 b illustrates exemplary digital audio/video player that can include a multi-touch panel and/or a multi-hover panel and a panel processor configured for implementing baseline normalization or global baseline inversion detection according to one embodiment of this invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

In the following description of preferred embodiments, reference is made to the accompanying drawings which form a part hereof, and in which it is shown by way of illustration specific embodiments in which the invention may be practiced. It is to be understood that other embodiments may be used and structural changes may be made without departing from the scope of the preferred embodiments of the present invention.

Pre-stored no-touch or no-hover (no-event) sensor output values can initially be used when a sensor panel subsystem is first booted up to establish an initial baseline of sensor output values unaffected by fingers or other objects touching or hovering over the sensor panel during boot-up. This initial baseline can then be normalized so that each sensor generates the same output value for a given amount of touch or hover, providing a uniform response across the sensor panel and enabling subsequent touch or hover events to be more easily detected. After the initial normalization process is complete, the pre-stored baseline can be discarded in favor of a newly captured no-event baseline that may be more accurate than the pre-stored baseline due to temperature or other variations.

Although some embodiments of the invention may be described herein in terms of the normalization of capacitive multi-touch sensor panels, embodiments of the invention may be generally applicable to other types of multi-touch sensors that can include resistive touch sensors, surface acoustic wave touch sensors, electromagnetic touch sensors, near field imaging touch sensors, optical touch sensors and the like. In addition, although the proximity sensors may be described herein as infrared (IR) proximity sensors, embodiments of the invention may be generally applicable to other types of proximity sensors having an output that can be AC-coupled to an analog channel.

Multi-touch touch-sensitive panels may be able to detect multiple touches (touch events or contact points) that occur at about the same time, and identify and track their locations. Similarly, multi-hover hover-sensitive panels may be able to detect multiple occurrences of hovering (hover events) that occur at about the same time, and identify and track their locations. FIG. 1 illustrates exemplary computing system 100 operable with either multi-touch panel 124, multi-hover panel 136, or a combination of both. Computing system 100 can include one or more panel processors 102 and peripherals 104, and panel subsystem 106. The one or more processors 102 can include, for example, an ARM968 processors or other processors with similar functionality and capabilities. However, in other embodiments, the panel processor functionality can be implemented instead by dedicated logic such as a state machine. Peripherals 104 can include, but are not limited to, random access memory (RAM) or other types of memory or storage, watchdog timers and the like.

Panel subsystem 106 can include, but is not limited to, one or more analog channels 108, channel scan logic 110 and driver logic 114. Channel scan logic 110 can access RAM 112, autonomously read data from the analog channels and provide control for the analog channels. This control can include multiplexing columns of multi-touch panel 124 or multi-hover panel 136 to analog channels 108. In addition, channel scan logic 110 can control the driver logic and stimulation signals being selectively applied to rows of multi-touch panel 124 or multi-hover panel 136. Compensation hardware 138 in panel subsystem 106, UI algorithm 140 in software or firmware executed by panel processor 102 and/or channel scan logic 110 (which may be referred to collectively herein as simply UI logic) can be used to perform the sensor panel compensation according to embodiments of the invention. In some embodiments, panel subsystem 106, panel processor 102 and peripherals 104 can be integrated into a single application specific integrated circuit (ASIC).

Driver logic 114 can provide multiple panel subsystem outputs 116 and can present a proprietary interface that drives high voltage driver, which is comprised of decoder 120 and subsequent level shifter and driver stage 118, although level-shifting functions could be performed before decoder functions. Level shifter and driver 118 can provide level shifting from a low voltage level (e.g. CMOS levels) to a higher voltage level, providing a better signal-to-noise (S/N) ratio for noise reduction purposes. Decoder 120 can decode the drive interface signals to one out of N outputs, whereas N is the maximum number of rows in the panel. Decoder 120 can be used to reduce the number of drive lines needed between the high voltage driver and panel 124. Each panel row input 122 can drive one or more rows in panel 124. In some embodiments, driver 118 and decoder 120 can be integrated into a single ASIC. However, in other embodiments driver 118 and decoder 120 can be integrated into driver logic 114, and in still other embodiments driver 118 and decoder 120 can be eliminated entirely.

Computing system 100 can also include host processor 128 for receiving outputs from panel processor 102 and performing actions based on the outputs that can include, but are not limited to, moving an object such as a cursor or pointer, scrolling or panning, adjusting control settings, opening a file or document, viewing a menu, making a selection, executing instructions, operating a peripheral device connected to the host device, answering a telephone call, placing a telephone call, terminating a telephone call, changing the volume or audio settings, storing information related to telephone communications such as addresses, frequently dialed numbers, received calls, missed calls, logging onto a computer or a computer network, permitting authorized individuals access to restricted areas of the computer or computer network, loading a user profile associated with a user's preferred arrangement of the computer desktop, permitting access to web content, launching a particular program, encrypting or decoding a message, and/or the like. Host processor 128 can also perform additional functions that may not be related to panel processing, and can be coupled to program storage 132 and display device 130 such as a liquid crystal display (LCD) for providing a UI to a user of the device.

Multi-touch panel 124 can in some embodiments include a capacitive sensing medium having a plurality of row traces or driving lines and a plurality of column traces or sensing lines, although other sensing media may also be used. The row and column traces can be formed from a transparent conductive medium such as Indium Tin Oxide (ITO) or Antimony Tin Oxide (ATO), although other transparent and non-transparent materials, such as copper, can also be used. In some embodiments, the row and column traces can be formed on opposite sides of a dielectric material, and can be perpendicular to each other, although in other embodiments other non-orthogonal or non-Cartesian orientations are possible. For example, in a polar coordinate system, the sensing lines can be concentric circles and the driving lines can be radially extending lines (or vice versa). It should be understood, therefore, that the terms “row” and “column,” “first dimension” and “second dimension,” or “first axis” and “second axis” as used herein are intended to encompass not only orthogonal grids, but the intersecting traces of other geometric configurations having first and second dimensions (e.g. the concentric and radial lines of a polar-coordinate arrangement). It should also be noted that in other embodiments, the rows and columns can be formed on a single side of a substrate, or can be formed on two separate substrates separated by a dielectric material. In some embodiments, the dielectric material can be transparent, such as glass, or can be formed from other materials such as Mylar. An additional dielectric cover layer may be placed over the row or column traces to strengthen the structure and protect the entire assembly from damage.

At the “intersections” of the traces, where the traces pass above and below (i.e. cross) each other (but do not make direct electrical contact with each other), the traces essentially form two electrodes (although more than two traces could intersect as well). Each intersection of row and column traces can represent a capacitive sensing node and can be viewed as picture element (pixel) 126, which can be particularly useful when multi-touch panel 124 is viewed as capturing an “image” of touch. (In other words, after multi-touch subsystem 106 has determined whether a touch event has been detected at each touch sensor in the multi-touch panel, the pattern of touch sensors in the multi-touch panel at which a touch event occurred can be viewed as an “image” of touch (e.g. a pattern of fingers touching the panel).) The capacitance between row and column electrodes appears as a stray capacitance on all columns when the given row is held at DC and as a mutual capacitance Csig when the given row is stimulated with an AC signal. The presence of a finger or other object near or on the multi-touch panel can be detected by measuring changes to Csig. The columns of multi-touch panel 124 can drive one or more analog channels 108 (also referred to herein as event detection and demodulation circuits) in multi-touch subsystem 106. In some embodiments, each column is coupled to one dedicated analog channel 108. However, in other embodiments, the columns may be couplable via an analog switch to a fewer number of analog channels 108.

FIG. 2 a illustrates exemplary capacitive multi-touch panel 200. FIG. 2 a indicates the presence of a stray capacitance Cstray at each pixel 202 located at the intersection of a row 204 and a column 206 trace (although Cstray for only one column is illustrated in FIG. 2 for purposes of simplifying the figure). Note that although FIG. 2 a illustrates rows 204 and columns 206 as being substantially perpendicular, they need not be so aligned, as described above. In the example of FIG. 2 a, AC stimulus Vstim 214 is being applied to one row, with all other rows connected to DC. The stimulus causes a charge to be injected into the column electrodes through mutual capacitance at the intersecting points. This charge is Qsig=Csig×Vstm. Each of columns 206 may be selectively connectable to one or more analog channels (see analog channels 108 in FIG. 1).

FIG. 2 b is a side view of exemplary pixel 202 in a steady-state (no-touch) condition. In FIG. 2 b, an electric field of electric field lines 208 of the mutual capacitance between column 206 and row 204 traces or electrodes separated by dielectric 210 is shown.

FIG. 2 c is a side view of exemplary pixel 202 in a dynamic (touch) condition. In FIG. 2 c, finger 212 has been placed near pixel 202. Finger 212 is a low-impedance object at signal frequencies, and has an AC capacitance Cfinger from the column trace 204 to the body. The body has a self-capacitance to ground Cbody of about 200 pF, where Cbody is much larger than Cfinger. If finger 212 blocks some electric field lines 208 between the row and column electrodes (those fringing fields that exit the dielectric and pass through the air above the row electrode), those electric field lines are shunted to ground through the capacitance path inherent in the finger and the body, and as a result, the steady state signal capacitance Csig is reduced by ΔCsig. In other words, the combined body and finger capacitance act to reduce Csig by an amount ΔCsig (which can also be referred to herein as Csig_sense), and can act as a shunt or dynamic return path to ground, blocking some of the electric fields as resulting in a reduced net signal capacitance. The signal capacitance at the pixel becomes Csig−ΔCsig, where Csig represents the static (no touch) component and ΔCsig represents the dynamic (touch) component. Note that Csig−ΔCsig may always be nonzero due to the inability of a finger, palm or other object to block all electric fields, especially those electric fields that remain entirely within the dielectric material. In addition, it should be understood that as a finger is pushed harder or more completely onto the multi-touch panel, the finger can tend to flatten, blocking more and more of the electric fields, and thus ΔCsig can be variable and representative of how completely the finger is pushing down on the panel (i.e. a range from “no-touch” to “full-touch”).

Referring again to FIG. 2 a, as mentioned above, Vstim signal 214 can be applied to a row in multi-touch panel 200 so that a change in signal capacitance can be detected when a finger, palm or other object is present. Vstim signal 214 can include one or more pulse trains 216 at a particular frequency, with each pulse train including a number of pulses. Although pulse trains 216 are shown as square waves, other waveshapes such as sine waves can also be employed. A plurality of pulse trains 216 at different frequencies can be transmitted for noise reduction purposes to detect and avoid noisy frequencies. Vstim signal 214 essentially injects a charge into the row, and can be applied to one row of multi-touch panel 200 at a time while all other rows are held at a DC level. However, in other embodiments, the multi-touch panel may be divided into two or more sections, with Vstim signal 214 being simultaneously applied to one row in each section and all other rows in that region section held at a DC voltage.

Each analog channel coupled to a column measures the mutual capacitance formed between that column and the row. This mutual capacitance is comprised of the signal capacitance Csig and any change Csig_sense in that signal capacitance due to the presence of a finger, palm or other body part or object. These column values provided by the analog channels may be provided in parallel while a single row is being stimulated, or may be provided in series. If all of the values representing the signal capacitances for the columns have been obtained, another row in multi-touch panel 200 can be stimulated with all others held at a DC voltage, and the column signal capacitance measurements can be repeated. Eventually, if Vstim has been applied to all rows, and the signal capacitance values for all columns in all rows have been captured (i.e. the entire multi-touch panel 200 has been “scanned”), a “snapshot” of all pixel values can be obtained for the entire multi-touch panel 200. This snapshot data can be initially saved in the multi-touch subsystem, and later transferred out for interpretation by other devices in the computing system such as the host processor. As multiple snapshots are obtained, saved and interpreted by the computing system, it is possible for multiple touches to be detected, tracked, and used to perform other functions.

FIG. 3 illustrates an exemplary proximity sensor panel 306 that can include an array of LED/photodiode pairs 300, each pair representing a portion of a proximity sensor, according to some embodiments of the invention. In FIG. 3, each LED/photodiode pair 300 in a particular row can be simultaneously stimulated by Vstim 302 with the other rows held at a DC voltage, and after a snapshot of the row has been captured, LED/photodiode pairs 300 in a new row can be stimulated. In the first two columns of FIG. 3, each LED/photodiode pair 300 in a particular column can be simultaneously connected to a single photodiode amplifier 304, and each photodiode amplifier 304 can be connected to a separate analog channel of the same design that can be used to detect changes in signal capacitance in a capacitive touch sensor array. In this manner, for every row being stimulated, the analog channels for each column can determine, at about the same time, whether the LED/photodiode pair in the row being stimulated has detected the presence of a finger, palm or other object. Eventually, if Vstim has been applied to all rows, and the effect of any photodiode current on all columns in all rows has been captured (i.e. the entire proximity sensor panel 306 has been “scanned”), a “snapshot” of all pixel values can be obtained for the entire panel. This snapshot data can be initially saved in the panel subsystem, and later transferred out for interpretation by other devices in the computing system such as the host processor. As multiple snapshots are obtained, saved and interpreted by the computing system, it is possible for multiple hover events to be detected, tracked, and used to perform other functions.

FIG. 4 is an illustration of exemplary proximity sensor 400 according to some embodiments of this invention. Proximity sensors 400 can detect one or more fingers, a palm or other object touching the multi-touch panel or hovering over the multi-touch panel in the far field without touching it. Proximity sensor 400 can include source Vstim 402 that drives IR light emitting diode (LED) 404, which emits transmitted IR 406. Vstim 402 can include a burst of square waves in an otherwise DC signal, in a manner similar to the Vstim applied to the rows on the capacitive multi-touch panel as described above, although in some embodiments the square waves representing Vstim can be preceded and followed by other non-DC signaling. Reflected IR 408, which may have reflected off of a finger, palm or other object 410, can be detected by photodiode (e.g. a fast pin diode) 412 or any other device (e.g. a phototransistor or other sensing device) whose current changes as a function of received IR light. Photodiode 412 can be reversed biased to a reference voltage Vref, which can be maintained at the −input (inverting input) of photodiode amplifier 414 whose +input (non-inverting input) is tied to Vref. The photocurrent produced through the photodiode, Iphoto, also primarily passes through the parallel combination of feedback resistor Rfb and capacitor Cfb, and the output of the photodiode amplifier is Vref−(Zcfb×Rfb)×(Iphoto+Iin)/(Zcfb+Rfb), the latter term (Zcfb×Rfb)×(Iphoto+Iin)/(Zcfb+Rfb), representing the voltage drop across Rfb and Cfb where Iin is the input current to the inverting input of photodiode amplifier 414 and is usually negligible. The impedance Zcfb is frequency dependent and can be adjusted to optimize the gain of the photo amplifier for a given modulation frequency of the signal Iphoto, whereas Iphoto(t)=Ip×sin(wt) with wt=2×PI×fmod and fmod is the modulation signal, Ip is the amplitude of the modulation signal and Zcfb=−1/(jwt). The modulation frequency fmod is equivalent to the modulation frequency fstm of Vstm. The output of photodiode amplifier 414 can be AC coupled using AC coupling capacitor 416.

FIG. 5 illustrates exemplary analog channel (event detection and demodulation circuit) 500. One or more analog channels 500 can be present in the panel subsystem. One or more columns from a multi-touch panel or a multi-hover panel can be connectable to input 540 of each analog channel 500. Each analog channel 500 can include virtual-ground charge amplifier 502, signal mixer 504, offset compensation 506, rectifier 532, subtractor 534, and analog-to-digital converter (ADC) 508. FIG. 5 also shows, in dashed lines, the steady-state signal capacitance Csig that can be contributed by a multi-touch panel column connected to analog channel 500 when an input stimulus Vstim is applied to a row in the multi-touch panel and no finger, palm or other object is present, and the dynamic signal capacitance Csig−ΔCsig that can appear when a finger, palm or other object is present.

Vstim, as applied to a row in the multi-touch panel, can be generated as a burst of square waves or other non-DC signaling in an otherwise DC signal, although in some embodiments the square waves representing Vstim can be preceded and followed by other non-DC signaling. If Vstim is applied to a row and a signal capacitance is present at a column connected to analog channel 500, the output of charge amplifier 502 can be pulse train 510 centered at Vref with a peak-to-peak (p-p) amplitude in the steady-state condition that is a fraction of the p-p amplitude of Vstim, the fraction corresponding to the gain of charge amplifier 502. For example, if Vstim includes 18V p-p pulses and the gain of the charge amplifier is 0.1, then the output of the charge amplifier can be 1.8V p-p pulses. This output can be mixed in signal mixer 304 with demodulation waveform Fstim 516.

Because Vstim can create undesirable harmonics, especially if formed from square waves, demodulation waveform Fstim 516 can be a Gaussian sine wave in an otherwise DC signal that is digitally generated from look-up table (LUT) 512 or other digital logic and synchronized to Vstim. In some embodiments, Fstim 516 can be tunable in frequency and amplitude by selecting different digital waveforms in LUT 512 or generating the waveforms differently using other digital logic. Signal mixer 504 can demodulate the output of charge amplifier 510 by subtracting Fstim 516 from the output to provide better noise rejection. Signal mixer 504 can reject all frequencies outside the passband, which can in one example be about ±30 kHz around Fstim. This noise rejection can be beneficial in noisy environment with many sources of noise, such as 802.11, Bluetooth and the like, all having some characteristic frequency that can interfere with the sensitive (femtofarad level) analog channel 500. Signal mixer 504 is essentially a synchronous rectifier as the frequency of the signal at its inputs is the same, and as a result, signal mixer output 514 can be a rectified Gaussian sine wave.

Offset compensation 506 can then be applied to signal mixer output 514, which can remove the effect of the static Csig, leaving only the effect of ΔCsig appearing as result 524. Offset compensation 506 can be implemented using offset mixer 530. Offset compensation output 522 can be generated by rectifying Fstim 516 using rectifier 532, and mixing the rectifier output 536 with an analog voltage from digital-to-analog converter (DAC) 520 in offset mixer 530. DAC 520 can generate the analog voltage based on a digital value selected to increase the dynamic range of analog channel 500. Offset compensation output 522, which can be proportional to the analog voltage from the DAC 520, can then be subtracted from signal mixer output 514 using subtractor 534, producing subtractor output 538 which can be representative of the change in the AC capacitance ΔCsig that occurs when a capacitive sensor on the row being stimulated has been touched. Subtractor output 538 is then integrated and can then be converted to a digital value by ADC 508. In some embodiments, integrator and ADC functions are combined and ADC 508 may be an integrating ADC, such as a sigma-delta ADC, which can sum a number of consecutive digital values and average them to generate result 524.

FIG. 6 a is a graph of an exemplary sensor panel cross-section for one row of sensors versus sensor output value, with solid line 600 representing raw baseline no-event sensor values obtained after scanning the row during boot-up of a sensor panel subsystem and capturing the output values from the analog channels connected to the columns of the sensor panel. (It should be understood that a single row is illustrated for purposes of explanation only, but that similar graphs can be generated for every row in the sensor panel.) As mentioned above, the electrical characteristics of the sensors (pixels) in a sensor panel are likely to vary due to processing variations, manufacturing tolerances and assembly differences, resulting in variations in the sensor output values as generated by the analog channels. Accordingly, in the example of FIG. 6 a, raw baseline no-event sensor values 600 vary from sensor to sensor across the row due to these variations. Because the raw baseline is non-uniform, a subsequent touch or hover event (after boot-up is complete) that occurs at or above the row can produce sensor output values 604 that do not stand out appreciably from raw baseline 600, and therefore can be difficult to detect.

To normalize the sensors, the difference (offset) between raw baseline no-event sensor value 600 and a selected normalized value for each sensor or pixel can be computed after the boot-up scan. These offsets (one for each sensor) can then be subtracted from all subsequently obtained output values for that sensor (after boot-up is complete) to normalize the sensor output values. In the example of FIG. 6 b, the lowest raw baseline value (from sensor 3 in the example of FIG. 6 a) has been chosen as normalized value 602, and thus the offsets for each sensor are computed based on this normalized value. However, it should be understood that any normalized value can be selected. For example, if these offsets are subtracted from the raw baseline values, all sensor output values will be adjusted to approximately normalized value 602, producing a substantially flat normalized response. With the offsets computed for each sensor, the same subsequent touch or hover event as shown in FIG. 6 a will now produce normalized sensor output values 606 that stand out more appreciably from the normalized baseline 602, making it easier to detect.

The examples of FIGS. 6 a and 6 b presume that no finger or other object was touching or hovering over the sensor panel at the time of the boot-up scan. However, as illustrated in FIG. 6 c, if a finger or other object was touching or hovering over the sensor panel during boot-up, captured raw baseline 608 will have erroneously higher values as compared to correct raw baseline 600. As a result, when offsets are computed and subtracted from erroneous raw baseline 608, an erroneous normalized baseline 610 will be produced. When the finger or other object is removed, the no-touch sensor values will appear as a negative curve (a so-called “negative finger”) 612, as shown in FIG. 6 d.

One conventional solution to this problem is to perform a “minimum-increment baseline adaptation” process which periodically scans for the minimum sensor values and updates the raw baseline to reflect any newly obtained minimum sensor values. Accordingly, if a finger or other object was initially present during the boot-up scan and an erroneously high raw baseline was obtained, when the finger or other object is removed, a subsequent scan is performed and some sensor output values drop, those lower output values become the new raw baseline values for the affected sensors. However, due to expected but unpredictable fluctuations in the sensor readings, the raw baselines are occasionally incremented by a fixed amount so that the raw baseline does not become artificially low due to the fluctuations. The approach tends to track the bottom of the analog channel noise envelope. One problem with this approach is that a finger or other object initially present during the boot-up scan will corrupt the raw baseline and therefore the sensor readings until the finger or other object is removed and a new raw baseline is obtained.

FIG. 7 is a flowchart illustrating baseline normalization according to some embodiments of the invention in which pre-stored no-touch or no-hover (no-event) sensor output values can initially be used when a sensor panel subsystem is first booted up to establish an initial baseline of sensor output values unaffected by fingers or other objects touching or hovering over the sensor panel during boot-up. By using the pre-stored baseline until the finger or other object is removed, the baseline is not initially corrupted, and the presence or absence of a finger or other object can be more easily detected. It should be understood that most of the steps of FIG. 7 can be performed by the computing system of FIG. 1, under control of baseline normalization firmware or software 140 executed in panel processor 102, and/or baseline normalization hardware 138 in panel subsystem 106.

In FIG. 7, the raw no-event baseline values for the sensor panel can be captured prior to final assembly, such as at the factory, for example, at step 700, and can be stored in non-volatile memory such as an EEPROM at step 702. During boot-up, rather than scanning the sensor panel for the raw baseline, the pre-stored raw baseline, unaffected by any finger or object that may be present, can be used at step 704. Note that the pre-stored raw baseline may have been captured at a temperature that is different from the ambient temperature during boot-up, but nevertheless any error in the pre-stored raw baseline due to temperature coefficients is expected to be small. Optionally, if ambient temperature data and a temperature coefficient is available, the factory baseline values could be adjusted for the proper temperature at 706. Offsets can then be computed so that they can be applied to subsequently received output values (after boot-up is complete) to generate normalized output values at step 708.

A scan of the sensor panel to obtain raw sensor output values can then be performed at step 720. A finger or other object can then be detected at step 710 because the raw sensor output values will be higher than the pre-stored raw baseline. Alternatively, it can be determined that there is no finger of other object present due to the appearance of relatively flat raw output values (within a predetermined range of each other), or if the output values are below some predetermined threshold or within some predetermined range of the pre-stored raw baseline. If a finger or other object is in fact detected, the process waits at step 712 until the finger of other object has been removed, and the values appear flat and/or fall below the threshold or within the predetermined range of the pre-stored raw baseline. When it has been determined that no finger or other object is present, a new scan of the sensor panel can be performed at step 722, and a new baseline can be obtained and the pre-stored raw baseline can be discarded at step 714. If no finger or other object is detected at step 710, a new baseline can be obtained and the pre-stored raw baseline can be discarded at step 714.

In some embodiments of the invention, the detection of a finger or other object at step 712 can be used at optional step 716 to initiate diagnostics modes that run internal tests on the device, or put the device into a certain operational mode. For example, suppose the sensor panel is employed in a mobile telephone, and the telephone is in a sleep mode in which the sensor panel is powered down (but not the whole telephone). When a telephone call is received, the sensor panel powers up and an “answer phone” virtual button is displayed beneath the sensor panel. If a finger or other object happens to be touching or hovering over that portion of the sensor panel covering the “answer phone” virtual button when the call is received, the user would normally have to remove the finger or other object, wait for a new raw baseline to be obtained, and then put the finger or other object back down over the sensor panel to trigger the virtual button. However, in other embodiments of the invention, if a finger or other object is detected, the “answer phone” virtual button may be automatically triggered so that the user can answer the phone without having to first lift his/her finger off and then place it back down. Other tasks can be triggered as well. For example, if a multi-event sensor panel detects a number of fingers, this may be interpreted as a sign that the user wants to type something, so a full keypad function may be activated.

In some embodiments of the invention when a pre-stored raw baseline is not employed as described above, an enhancement to the “minimum increment baseline adaptation” process described above may be performed instead. The enhancement is based on the empirical observation that if a large object such as a palm is placed on a sensor panel, the sensor output values underneath the large object will increase as expected, but just outside the object, where there is no touching or hovering, the sensor output values will decrease. FIG. 8 a illustrates this phenomenon. In FIG. 8 a, a large object touch or hover event 800 causes the output values of the sensors under the large object to increase, as expected, but output values 802 of the sensors just outside the large object unexpectedly drop below normalized baseline 804. If the conventional “minimum increment baseline adaptation” process is used, the raw baseline values for these outside sensors will be artificially pushed down, and an inaccurate revised baseline will be generated.

To overcome this problem, some embodiments of the present invention can employ a global baseline inversion detection algorithm during boot-up. In this algorithm, illustrated in FIG. 8 b, a scan of the entire sensor panel is performed and a baseline is captured at step 806. In some embodiments, multiple (e.g. four) consecutive image scans can be performed, and averaged raw sensor output values can be obtained to create a baseline with extra precision to allow for more gradual adaptation. Next, the number of sensor output values in the entire image with values above the current normalized baseline value are summed (above_baseline_sum) at step 808, and the number of sensor output values below the normalized baseline are summed (below_baseline_sum) at step 810. A determination is made whether the magnitude of below_baseline_sum is much greater than the magnitude of above_baseline_sum (greater than a predetermined margin) for several frames at step 812. If this condition is not satisfied, the sensor panel is re-scanned at step 816, and steps 808, 810 and 812 are repeated. The baseline is recaptured at step 814 only when the magnitude of below_baseline_sum is >> magnitude of above_baseline_sum, and this condition persists for several consecutive frames. In one embodiment, this condition must persist for a certain number of consecutive frames (e.g. 16), and thereafter the baseline is recaptured from the next several (e.g. four) frames. It should be understood that the steps of FIG. 8 b can be performed by the computing system of FIG. 1, under control of baseline normalization firmware of software 140 executed in panel processor 102, and/or baseline normalization hardware 138 in panel subsystem 106.

When a palm or other large object is present, the captured sensor output values will be high for the sensors underneath the large object and low for the outside sensors, and an erroneous baseline will be captured. As long as the palm or other large object is present, because the erroneous baseline is being used, the values for above_baseline_sum and below_baseline_sum will both be small, the equation of step 812 will not be satisfied, and no new baseline will be captured. As a result, the baseline values for the sensors outside the large object will not be pushed down to an artificially low level. When the palm or other large object is removed, all output values will return to the correct baseline. In other words, the output values for the sensors that were underneath the large object will drop, and the output values for the sensors outside the large object should rise. However, because that the captured erroneous baseline is still being used, the magnitude of below_baseline_sum will be much greater than the magnitude of above_baseline_sum. If this condition persists for a few scans, the algorithm concludes that the palm or other large object has definitively been removed, and a new baseline can be captured at 814.

Detecting baseline inversion as described above using above_baseline_sum and below_baseline_sum may be sufficient to recover from whole fingers on the surface during original baseline capture. However, it may not trigger a recapture from partial fingers that were along an edge, or from non-grounded conductors like coins and keys that produce a mix of negative and positive sensor output values. To handle these cases, in some embodiments the global baseline inversion detection algorithm can be modified to trigger recapture based on the detection of isolated, slightly below baseline sensor output values even in the presence of many weakly positive sensor output values. As illustrated in FIG. 8 c, to prevent background noise from spuriously triggering such recaptures, the negative sensor output value for any sensor may be required to be below the baseline output value for that sensor by some amount N (see step 818), where N may be chosen with sufficient margin to avoid triggering caused by a background noise standard deviation, such as four or five standard deviations of pixel or background noise below the baseline output value for that sensor. (Note that the peak pixel threshold for starting a watershed patch (i.e. starting the tracking of a touch event) is also about 4-5 standard deviations of background noise above the baseline output value for that sensor). Note that step 818 may be performed at any time.

In addition, the modified algorithm can optionally require that any individual positive touch sensor output values be limited to not more than some threshold level, such as a particular level representative of hover strength (i.e., positive sensor output values caused by a fingertip hovering over the surface within the near-field detection capabilities of the touch sensor, which are generally weaker than the touch threshold), and additionally that the sum of above baseline sensor output values does not exceed M times the sum of below baseline sensor output values (see step 820), where M may be eight, for example. These conditions effectively prevent baseline recapture from slightly negative sensor output values during a finger touch.

Water and other conductive solutions can cause negative image perturbations with no positive component. These wholly negative sensor output value regions can trigger a recapture due to the global baseline inversion detection algorithm described above. As the solution dries off, wholly positive, false sensor output value patches that are indistinguishable from objects hovering within the near-field detection capabilities of the touch sensor) may be left over. However, these false patches may have no negative sensor output values to trigger a recapture. Therefore, in some embodiments of this invention, the global baseline inversion detection algorithm of either FIG. 8 b or 8 c can be further modified to include a timeout rule, which provides that any unexpectedly sustained (e.g. for 10 seconds) positive patches (i.e. patches that appear to be caused by a finger hovering within the near-field detection capabilities of a touch sensor) trigger a recapture. Users are unlikely to intentionally sustain a finger hover within the near-field detection capabilities of a touch sensor in the same spot for more than a few seconds, so this rule should not have a noticeable impact on user experience. This modification can also act as a fail-safe if periodic baseline adjustments (described below) fail to keep up with a particularly severe temperature ramp. Note that the detection of a hover event within the near-field detection capabilities of a touch sensor should not trigger a re-capture when optical proximity is also detected (e.g. when a separate proximity sensor detects the presence of a user's head), otherwise the optical baseline could get reset within 10 seconds as well. Thus, the sustained hover rule can be applied only when optical proximity is not above its detection threshold. This can lessen the likelihood that hovering ears and cheeks will be erased by a timeout recapture.

FIG. 8 d illustrates an exemplary periodic baseline adjustment algorithm for performing baseline drift compensation according to some embodiments of this invention. The periodic baseline adjustment algorithm can increment or decrement individual baseline sensor output values by one count or unit, or some small value. This periodic baseline adjustment algorithm can be implemented independent of any other baseline algorithm described above. One purpose of this adjustment mode is to provide periodic fine-tuning of the baseline to track temperature drift.

To perform periodic baseline adjustment, at step 822 a scan of the sensor panel is performed after a dynamic adjustment time interval has passed. This time interval is generally much longer than the frame rate (the time it takes to scan the entire sensor panel one time). Previously computed offset values are subtracted from the sensor output values to normalize them at step 824, and all normalized sensor output values that are positive and negative are identified at step 826. For any normalized sensor values that are positive, the offset values are incremented by P at step 828, where P may be one count, or a small value, or a percentage of the positive value. For any normalized sensor values that are negative, the offset values are decremented by Q at step 830, where Q may be one count, or a small value, or a percentage of the negative value. The adjustment interval may be modified at step 832, and then the algorithm waits the duration of the adjustment period before scanning the panel again at step 822.

The adjustment interval can vary. Dynamic adjustment intervals allow quick recovery for slight baseline inversions (e.g. heating on columns w/negative temperature coefficient) without adapting out far-field or touch objects very quickly. Adjustment intervals can depend on an average of background (non-patch) sensor output values (similar to far-field measurement but linear), computed on a periodic basis than is generally much faster then the adjustment interval, and in some embodiments on an every-frame basis. This background average represents the average sensor output values in non-touch or non-hover areas (i.e. outside of “patch” areas apparently caused by touch or hover events). The adjustment interval can then be chosen as a function of the computed background average. One exemplary algorithm for modifying the adjustment interval in step 832 is as follows, although it should be clearly understood that the values listed therein are for purposes of illustration only, and other values can be used in accordance with the invention:

If background average negative   adjust interval = 250ms (handles fast warm-up); else if background average took > 1 second to drift positive   adjust interval = 1 second (to handle fast cool-down); else if background average neutral or suddenly positive   if Small Hover detected in previous frame     adjust interval = 8 seconds,   else if Finger Touch detected in previous frame     adjust interval = 256 seconds,   else     adjust interval = 4 seconds (default).

This updating of the adjustment interval can occur more often that the adjustment interval itself, and can in some embodiments be updated on an every-frame basis. If the background average is negative, this can be an indication that the sensor panel is warming up quickly, and thus the adjustment interval can be set to a first interval, such as 250 ms. If the background average took more than a second interval (larger than the first interval), such as one second, to drift positive, this can be an indication of a fast sensor panel cool-down, and thus the adjustment interval can be set to that second interval. If the background average took less than the second interval to drift positive, this can be an indication of a large object. If the background average is neutral or suddenly positive (e.g. drifted positive in less than the second interval), then if a small hover was previously detected, indicating a possible upcoming touch event, the adjustment interval can be set to a fourth interval which is longer than the second interval. If a finger touch was previously detected, indicating the likelihood of multiple touch events in the near future, the adjustment interval can be set to a fifth interval which is longer than the fourth interval. If neither event was dictated, the adjustment interval can be set to a third interval, which is between the second and fourth intervals in duration. In some embodiments, to be considered negative, the background average can be about one standard deviation of background noise below neutral. To be considered positive it can be greater than about 2 standard deviations of background noise above neutral.

FIG. 9 a illustrates an exemplary mobile telephone 936 that may include multi-touch panel 924 and/or multi-hover panel 934, and panel subsystem and panel processor 930 configured for implementing baseline normalization or global baseline inversion detection as described above according to embodiments of the invention. FIG. 9 b illustrates an exemplary digital audio/video player 938 that may include multi-touch panel 924 and/or multi-hover panel 934 and panel subsystem and panel processor 930 configured for implementing baseline normalization or global baseline inversion detection as described above according to embodiments of the invention. The mobile telephone and digital audio/video player of FIGS. 9 a and 9 b can advantageously benefit from baseline normalization or global baseline inversion detection because without it, fingers or other objects present on or over the sensor panel during boot-up can cause erroneous baselines to be computed, which can further cause errors in the detection of touch or hover events on the sensor panel and inconsistent or erroneous triggering of virtual buttons.

Although the present invention has been fully described in connection with embodiments thereof with reference to the accompanying drawings, it is to be noted that various changes and modifications will become apparent to those skilled in the art. Such changes and modifications are to be understood as being included within the scope of the present invention as defined by the appended claims. 

1. A method for periodically evaluating baseline sensor output values for sensors in a multi-event sensor panel and performing baseline drift compensation, the method comprising: performing a scan of the sensor panel to obtain new sensor output values; normalizing each new sensor output value by subtracting a stored offset value for that sensor from the new sensor output value; computing a background average of sensor output values not considered to be part of a patch of sensor output values presumed to be due to a touch or hover event; choosing an adjustment interval for the baseline drift compensation as a function of the computed background average; and performing baseline drift compensation at the chosen adjustment interval.
 2. The method of claim 1, further comprising performing baseline drift compensation by: identifying normalized sensor output values that are positive and those that are negative; for each positive normalized sensor output value, incrementing the stored offset value for the associated sensor by a first fixed amount; and for each negative normalized sensor output value, decrementing the stored offset value for the associated sensor by a second fixed amount.
 3. The method of claim 1, further comprising setting the adjustment value to a first interval if the background average is negative.
 4. The method of claim 3, further comprising: if the background average took more than a second interval to drift positive, setting the adjustment interval to a second interval longer than the first interval; and if the background average is neutral or took less than the second interval to drift positive, then if a small hover was detected in a previous sensor panel scan, setting the adjustment interval to a fourth interval longer than the second interval, if a touch event was detected in the previous sensor panel scan, setting the adjustment interval to a fifth interval longer than the fourth interval, and if neither a small hover nor a touch event was detected in the previous sensor panel scan, setting the adjustment interval to a third interval, the third interval between the second and fourth intervals in duration.
 5. The method of claim 3, further comprising determining that the background average is negative when the background average is about one standard deviation of background noise below neutral.
 6. The method of claim 4, further comprising determining that the background average is positive when the background average is about two standard deviation of background noise above neutral.
 7. The method of claim 1, further comprising setting the adjustment interval to a first interval if the background average indicates that the sensor panel is warming up quickly.
 8. The method of claim 7, further comprising: setting the adjustment interval to a second interval longer than the first interval if the background average indicates that the sensor panel is cooling down quickly; and if the background average is neutral or took less than the second interval to drift positive, then setting the adjustment interval to a fourth interval longer than the second interval if a previous sensor scan indicates an occurrence of a hover event, setting the adjustment interval to a fifth interval longer than the fourth interval if the previous sensor scan indicates an occurrence of a touch event, and if neither a small hover nor a touch event was detected in the previous sensor panel scan, setting the adjustment interval to a third interval, the third interval between the second and fourth intervals in duration.
 9. An apparatus for periodically evaluating baseline sensor output values for sensors in a multi-event sensor panel and performing baseline drift compensation, comprising: a panel processor programmed for performing a scan of the sensor panel to obtain new sensor output values; normalizing each new sensor output value by subtracting a stored offset value for that sensor from the new sensor output value; computing a background average of sensor output values not considered to be part of a patch of sensor output values presumed to be due to a touch or hover event; choosing an adjustment interval for the baseline drift compensation as a function of the computed background average; and performing baseline drift compensation at the chosen adjustment interval.
 10. The apparatus of claim 9, the panel processor further programmed for performing baseline drift compensation by: identifying normalized sensor output values that are positive and those that are negative; for each positive normalized sensor output value, incrementing the stored offset value for the associated sensor by a first fixed amount; and for each negative normalized sensor output value, decrementing the stored offset value for the associated sensor by a second fixed amount.
 11. The apparatus of claim 9, the panel processor further programmed for setting the adjustment value to a first interval if the background average is negative.
 12. The apparatus of claim 11, the panel processor further programmed for: if the background average took more than a second interval to drift positive, setting the adjustment interval to a second interval longer than the first interval; and if the background average is neutral or took less than the second interval to drift positive, then if a small hover was detected in a previous sensor panel scan, setting the adjustment interval to a fourth interval longer than the second interval, if a touch event was detected in the previous sensor panel scan, setting the adjustment interval to a fifth interval longer than the fourth interval, and if neither a small hover nor a touch event was detected in the previous sensor panel scan, setting the adjustment interval to a third interval, the third interval between the second and fourth intervals in duration.
 13. The apparatus of claim 1 1, the panel processor further programmed for determining that the background average is negative when the background average is about one standard deviation of background noise below neutral.
 14. The apparatus of claim 12, the panel processor further configured for determining that the background average is positive when the background average is about two standard deviation of background noise above neutral.
 15. The apparatus of claim 9, the multi-event sensor panel comprising a multi-touch sensor panel.
 16. The apparatus of claim 9, the multi-event sensor panel comprising a multi-hover sensor panel.
 17. The apparatus of claim 9, further comprising a computing system that incorporates the apparatus, the computing system comprising: a panel subsystem coupled to the panel processor and including the one or more event detection and demodulation circuits; and a host processor coupled to the panel processor.
 18. The apparatus of claim 17, further comprising a mobile telephone that incorporates the computing system.
 19. The apparatus of claim 17, further comprising a digital audio player that incorporates the computing system.
 20. The apparatus of claim 9, the panel processor further programmed for: setting the adjustment interval to a first interval if the background average indicates that the sensor panel is warming up quickly.
 21. The apparatus of claim 20, the panel processor further configured for: setting the adjustment interval to a second interval longer than the first interval if the background average indicates that the sensor panel is cooling down quickly; and if the background average is neutral or took less than the second interval to drift positive, then setting the adjustment interval to a fourth interval longer than the second interval if a previous sensor scan indicates an occurrence of a hover event, setting the adjustment interval to a fifth interval longer than the fourth interval if the previous sensor scan indicates an occurrence of a touch event, and if neither a small hover nor a touch event was detected in the previous sensor panel scan, setting the adjustment interval to a third interval, the third interval between the second and fourth intervals in duration.
 22. An apparatus for periodically evaluating baseline sensor output values for sensors in a multi-event sensor panel every adjustment interval, comprising: means for performing a scan of the sensor panel to obtain new sensor output values; means for normalizing each new sensor output value by subtracting a stored offset value for that sensor from the new sensor output value; means for computing a background average of sensor output values not considered to be part of a patch of sensor output values presumed to be due to a touch or hover event; means for choosing an adjustment interval for the baseline drift compensation as a function of the computed background average; and means for performing baseline drift compensation at the chosen adjustment interval.
 23. A computer-readable medium comprising program code for periodically evaluating baseline sensor output values for sensors in a multi-event sensor panel and performing baseline drift compensation, the program code for causing performance of a method comprising: performing a scan of the sensor panel to obtain new sensor output values; normalizing each new sensor output value by subtracting a stored offset value for that sensor from the new sensor output value; computing a background average of sensor output values not considered to be part of a patch of sensor output values presumed to be due to a touch or hover event; choosing an adjustment interval for the baseline drift compensation as a function of the computed background average; and performing baseline drift compensation at the chosen adjustment interval.
 24. The computer-readable medium of claim 23, the method further comprising: identifying normalized sensor output values that are positive and those that are negative; for each positive normalized sensor output value, incrementing the stored offset value for the associated sensor by a first fixed amount; and for each negative normalized sensor output value, decrementing the stored offset value for the associated sensor by a second fixed amount.
 25. The computer-readable medium of claim 23, the method further comprising setting the adjustment value to a first interval if the background average is negative.
 26. The computer-readable medium of claim 25, the method further comprising: if the background average took more than a second interval to drift positive, setting the adjustment interval to a second interval longer than the first interval; and if the background average is neutral or took less than the second interval to drift positive, then if a small hover was detected in a previous sensor panel scan, setting the adjustment interval to a fourth interval longer than the second interval, if a touch event was detected in the previous sensor panel scan, setting the adjustment interval to a fifth interval longer than the fourth interval, and if neither a small hover nor a touch event was detected in the previous sensor panel scan, setting the adjustment interval to a third interval, the third interval between the second and fourth intervals in duration.
 27. The computer-readable medium of claim 25, the method further comprising determining that the background average is negative when the background average is about one standard deviation of background noise below neutral.
 28. The computer-readable medium of claim 26, the method further comprising determining that the background average is positive when the background average is about two standard deviation of background noise above neutral.
 29. The computer-readable medium of claim 23, the method further comprising: setting the adjustment interval to a first interval if the background average indicates that the sensor panel is warming up quickly.
 30. The computer-readable medium of claim 29, the method further comprising: setting the adjustment interval to a second interval longer than the first interval if the background average indicates that the sensor panel is cooling down quickly; and if the background average is neutral or took less than the second interval to drift positive, then setting the adjustment interval to a fourth interval longer than the second interval if a previous sensor scan indicates an occurrence of a hover event, setting the adjustment interval to a fifth interval longer than the fourth interval if the previous sensor scan indicates an occurrence of a touch event, and if neither a small hover nor a touch event was detected in the previous sensor panel scan, setting the adjustment interval to a third interval, the third interval between the second and fourth intervals in duration.
 31. A mobile telephone including an apparatus for periodically evaluating baseline sensor output values for sensors in a multi-event sensor panel every adjustment interval, the apparatus comprising: a panel processor programmed for performing a scan of the sensor panel to obtain new sensor output values; normalizing each new sensor output value by subtracting a stored offset value for that sensor from the new sensor output value; computing a background average of sensor output values not considered to be part of a patch of sensor output values presumed to be due to a touch or hover event; choosing an adjustment interval for the baseline drift compensation as a function of the computed background average; and performing baseline drift compensation at the chosen adjustment interval.
 32. A digital audio player including an apparatus for periodically evaluating baseline sensor output values for sensors in a multi-event sensor panel every adjustment interval, the apparatus comprising: a panel processor programmed for performing a scan of the sensor panel to obtain new sensor output values; normalizing each new sensor output value by subtracting a stored offset value for that sensor from the new sensor output value; computing a background average of sensor output values not considered to be part of a patch of sensor output values presumed to be due to a touch or hover event; choosing an adjustment interval for the baseline drift compensation as a function of the computed background average; and performing baseline drift compensation at the chosen adjustment interval. 